<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/erp/T_card.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/erp/T_card.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'c_id',
                    footer: "Foots",
                    cnName: 't_card',
                    name: 'T_card',
                    url: "/T_card/",
                    sortName: "c_id"
                },
                extend: extend,
                editFormFields: {"c_category_id":"","c_type_code":"","c_status":"","c_snowseason":"","c_remark":"","c_price":"","c_operator_name":"","c_operator_id":"","c_operator_account":"","c_name":"","c_lastest_used_time":"","c_id":"","c_group":"","c_flag":"","c_extra":"","c_deposit":"","c_create_time":"","c_code3":"","c_code2":"","c_code1":"","c_code":"","c_category_name":"","c_unrecycle":"","c_version":""},
                editFormOptions: [[{"title":"c_category_id","field":"c_category_id"},
                               {"title":"c_type_code","field":"c_type_code"},
                               {"title":"状态","field":"c_status","type":"number"}],
                              [{"title":"雪季","required":true,"field":"c_snowseason"},
                               {"title":"c_remark","field":"c_remark"},
                               {"title":"弃用","field":"c_price","type":"decimal"}],
                              [{"title":"c_operator_name","field":"c_operator_name"},
                               {"title":"c_operator_id","field":"c_operator_id"},
                               {"title":"c_operator_account","field":"c_operator_account"}],
                              [{"title":"c_name","field":"c_name"},
                               {"title":"最近一次使用时间","field":"c_lastest_used_time","type":"number"},
                               {"title":"c_id","required":true,"field":"c_id","disabled":true}],
                              [{"title":"c_group","field":"c_group"},
                               {"title":"c_flag","field":"c_flag","type":"number"},
                               {"title":"c_extra","field":"c_extra"}],
                              [{"title":"弃用","field":"c_deposit","type":"decimal"},
                               {"title":"入库时间","field":"c_create_time","disabled":true,"type":"number"},
                               {"title":"c_code3","field":"c_code3","disabled":true}],
                              [{"title":"c_code3","field":"c_code2","disabled":true},
                               {"title":"c_code1","field":"c_code1","disabled":true},
                               {"title":"c_code","field":"c_code","disabled":true}],
                              [{"title":"c_category_name","field":"c_category_name"},
                               {"title":"不回收","field":"c_unrecycle"},
                               {"title":"c_version","field":"c_version","type":"number"}]],
                searchFormFields: {},
                searchFormOptions: [],
                columns: [{field:'c_category_id',title:'c_category_id',type:'string',width:120,align:'left',sortable:true},
                       {field:'c_type_code',title:'c_type_code',type:'string',width:120,align:'left'},
                       {field:'c_status',title:'状态',type:'int',width:120,align:'left'},
                       {field:'c_snowseason',title:'雪季',type:'string',width:120,require:true,align:'left'},
                       {field:'c_remark',title:'c_remark',type:'string',width:120,align:'left'},
                       {field:'c_price',title:'弃用',type:'decimal',width:120,align:'left'},
                       {field:'c_operator_name',title:'c_operator_name',type:'string',width:120,align:'left'},
                       {field:'c_operator_id',title:'c_operator_id',type:'string',width:120,align:'left'},
                       {field:'c_operator_account',title:'c_operator_account',type:'string',width:120,align:'left'},
                       {field:'c_name',title:'c_name',type:'string',width:120,align:'left'},
                       {field:'c_lastest_used_time',title:'最近一次使用时间',type:'bigint',width:120,align:'left'},
                       {field:'c_id',title:'c_id',type:'string',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'c_group',title:'c_group',type:'string',width:120,align:'left'},
                       {field:'c_flag',title:'c_flag',type:'int',width:120,align:'left'},
                       {field:'c_extra',title:'c_extra',type:'string',width:120,align:'left'},
                       {field:'c_deposit',title:'弃用',type:'decimal',width:120,align:'left'},
                       {field:'c_create_time',title:'入库时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_code3',title:'c_code3',type:'string',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_code2',title:'c_code3',type:'string',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_code1',title:'c_code1',type:'string',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_code',title:'c_code',type:'string',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_category_name',title:'c_category_name',type:'string',width:120,align:'left'},
                       {field:'c_unrecycle',title:'不回收',type:'sbyte',width:120,align:'left'},
                       {field:'c_version',title:'c_version',type:'int',width:120,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
